package part03_工厂模式.p05_反射之工厂设计模式;

/**
 * @ClassName: FactoryDemo
 * @Author: AllenSun
 * @Date: 2020/3/29 16:16
 */
public class FactoryDemo {
    public static void main(String[] args) {
        Fruit apple = Factory.getInsance("part03_工厂模式.p05_反射之工厂设计模式.Apple");
        apple.eat();
        Fruit orange = Factory.getInsance("part03_工厂模式.p05_反射之工厂设计模式.Orange");
        orange.eat();
    }
}
